package com.agriculture.competition.mapper;

import com.agriculture.competition.domain.JaCompetitionSolution;
import com.agriculture.competition.domain.vo.JaCompetitionUserVo;

import java.util.List;
import java.util.Map;

/**
 * 解决方案Mapper接口
 *
 * @author agriculture
 * @date 2024-11-12
 */
public interface JaCompetitionSolutionMapper {
    /**
     * 查询解决方案
     *
     * @param id 解决方案主键
     * @return 解决方案
     */
    public JaCompetitionSolution selectJaCompetitionSolutionById(Long id);

    /**
     * 查询解决方案列表
     *
     * @param jaCompetitionSolution 解决方案
     * @return 解决方案集合
     */
    public List<JaCompetitionSolution> selectJaCompetitionSolutionList(JaCompetitionSolution jaCompetitionSolution);

    /**
     * 新增解决方案
     *
     * @param jaCompetitionSolution 解决方案
     * @return 结果
     */
    public int insertJaCompetitionSolution(JaCompetitionSolution jaCompetitionSolution);

    /**
     * 修改解决方案
     *
     * @param jaCompetitionSolution 解决方案
     * @return 结果
     */
    public int updateJaCompetitionSolution(JaCompetitionSolution jaCompetitionSolution);

    /**
     * 删除解决方案
     *
     * @param id 解决方案主键
     * @return 结果
     */
    public int deleteJaCompetitionSolutionById(Long id);


    public int deleteJaCompetitionSolution(JaCompetitionSolution jaCompetitionSolution);

    /**
     * 批量删除解决方案
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteJaCompetitionSolutionByIds(Long[] ids);


    public List<JaCompetitionUserVo> querySolutionUserNum(List<Long> competitionIds);


    public List<JaCompetitionUserVo> queryCountByCompetitionId();

    public List<JaCompetitionUserVo> queryMldelId(Map<String, Object> map);
}
